<?php
namespace Admin\Models\pm;
use Admin\Models\pm\basicModel;

class XhpmProjectTask extends basicModel
{

    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=10, nullable=false)
     */
    public $iTaskId;


    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=10, nullable=true)
     */
    public $iTTId;


    /**
     *
     * @var string
     * @Primary
     * @Identity
     * @Column(type="string", length=100, nullable=true)
     */
    public $sTaskName;

    /**
     *
     * @var integer
     * @Column(type="integer", length=10, nullable=true)
     */
    public $iProjectId;


    /**
     *
     * @var integer
     * @Column(type="integer", length=10, nullable=true)
     */
    public $iParentId;




    /**
     * @var string
     * @Column(type="string", length=300, nullable=true)
     */
    public $sTaskContent;


    /**
     *
     * @var integer
     * @Column(type="integer", length=1, nullable=true)
     */
    public $iLevel;


    /**
     *
     * @var integer
     * @Column(type="integer", length=1, nullable=true)
     */
    public $iTaskStatus;


    /**
     *
     * @var integer
     * @Column(type="integer", length=1, nullable=true)
     */
    public $iTaskType;


    /**
     *
     * @var integer
     * @Column(type="integer", length=1, nullable=true)
     */
    public $iProcess;


    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $sRemarks;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bDelete;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tCreateDate;

    /**
     *
     * @var string
     * @Column(type="string", length=20, nullable=true)
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tLastModifyDate;

    /**
     *
     * @var string
     * @Column(type="string", length=20, nullable=true)
     */
    public $iLastModifyUserId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tFromAt;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tEndAt;


    /**
     *
     * @var decimal
     * @Column(type="decimal", nullable=true)
     */
    public $dTaskTime;

    /**
     *
     * @var decimal
     * @Column(type="decimal", nullable=true)
     */
    public $dRealTaskTime;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tStartedAt;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tFinishedAt;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bChecked;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bPublic;


    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $sRelatedId;



    public function initialize()
    {
        $this->setSource("XHPm_ProjectTask");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHPm_ProjectTask';
    }


    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
